function y=Rosenbrock2(xx)
%Griewan

[row,~]=size(xx);
if row>1
    error('error');
end
y2=0;

for i=1:29
    y2 = y2+((100*(xx(i).^2 - xx(i+1))).^2 + (xx(i)-1).^2);
end
y=y2;
%y=sum(xx.^2);

